import request from '@/utils/request'

// 查询图书扩展信息列表
export function listExt(query) {
  return request({
    url: '/system/ext/list',
    method: 'get',
    params: query
  })
}

// 查询图书扩展信息详细
export function getExt(id) {
  return request({
    url: '/system/ext/' + id,
    method: 'get'
  })
}

// 新增图书扩展信息
export function addExt(data) {
  return request({
    url: '/system/ext',
    method: 'post',
    data: data
  })
}

// 修改图书扩展信息
export function updateExt(data) {
  return request({
    url: '/system/ext',
    method: 'put',
    data: data
  })
}

// 删除图书扩展信息
export function delExt(id) {
  return request({
    url: '/system/ext/' + id,
    method: 'delete'
  })
}
